package com.purong.purong.activity;

import android.content.Intent;
import android.view.View;

import com.purong.purong.PuRongApp;
import com.purong.purong.R;

/**
 * Created by zengwenjie on 2017/12/8.
 */
public class PersionInfoActivity extends BaseActivity {
    @Override
    public int getRootViewId() {
        return R.layout.activity_persion_info;
    }

    @Override
    public void initView() {
        showBack();
        showTitle("完善个人信息");
    }
    public void onClick(View v){
        if (PuRongApp.getLoginInfo(this)==null)
            return;
        Intent intent;
        switch (v.getId()){
            case R.id.user_base:

//                    LoginBean bean=PuRongApp.getLoginInfo(this);
//                    if (bean.getIs_real().equals("1")){
//                        intent=new Intent(this,RealIdentifyActivity.class);
//                        startActivity(intent);
//                    }else if (bean.getIs_real().equals("2")){
                        intent=new Intent(this,UserBaseInfoActivity.class);
                        startActivity(intent);
//                    }


                break;
            case R.id.company_info:
                intent=new Intent(this,UserCompanyActivity.class);
                startActivity(intent);
                break;
            case R.id.credit_info:
                intent=new Intent(this,UserCreditActivity.class);
                startActivity(intent);
                break;
            case R.id.policy_lay:
                intent=new Intent(this,UserPolicyActivity.class);
                startActivity(intent);
                break;
            case R.id.car_lay:
                intent=new Intent(this,UserCarActivity.class);
                startActivity(intent);
                break;
            case R.id.house_lay:
                intent=new Intent(this,UserHouseActivity.class);
                startActivity(intent);
                break;
        }
    }
    @Override
    public void initData() {

    }
}
